from utils.base_view import BaseModelViewSet
from utils.base import BasePageNumberPagination

from apps.interfaces.models import Api
from apps.interfaces.serializers import ApiSerializers
from rest_framework.permissions import IsAuthenticated
from apps.interfaces.filters import ApiFilter


class ApiViewSet(BaseModelViewSet):
    serializer_class = ApiSerializers
    queryset = Api.objects.all()
    permission_classes = [IsAuthenticated]
    pagination_class = BasePageNumberPagination
    filterset_class = ApiFilter

